package com.article.feign;

import com.usian.model.atri.pojos.dto.ArticleInfoDto;
import com.usian.model.behavior.ApBehaviorEntry;
import com.usian.model.behavior.ApFollowBehavior;
import com.usian.model.behavior.ApLikesBehavior;
import com.usian.model.behavior.ApUnlikesBehavior;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-behavior")
public interface WenzhangduochaFeign {


    @PostMapping("/behavior/api/v1/behavior/apBehaviorEntry")
    ApBehaviorEntry apBehaviorEntry(@RequestBody ArticleInfoDto dto);

    @PostMapping("/behavior/api/v1/behavior/apUnlikesBehavior")
    ApUnlikesBehavior apUnlikesBehavior(@RequestBody ArticleInfoDto dto);

    @PostMapping("/behavior/api/v1/behavior/apLikesBehavior")
    ApLikesBehavior apLikesBehavior(@RequestBody ArticleInfoDto dto);

    @PostMapping("/behavior/api/v1/behavior/apFollowBehavior")
    ApFollowBehavior apFollowBehavior(@RequestBody ArticleInfoDto dto);
}
